package com.chixing.day03_oop;
/*
* 主函数
* */
public class CompanyTest {
    public static void main(String[] args) {
        //实例化对象1
   /*     Company company1 = new Company();
        company1.companyId = 9001;
        company1.companyName = "中国华为";
        company1.companyAddress = "苏州桑田岛";
        company1.companyType = "民营企业";
        company1.companyTelno =126543345L;*/

        Company company1 = new Company();

        company1.setCompanyId(9001);
        System.out.println(company1.getCompanyId());

        company1.setCompanyName("中国华为");
        System.out.println(company1.getCompanyName());


        company1.setCompanyAddress("苏州桑田岛");
        System.out.println(company1.getCompanyAddress());


        company1.setCompanyType("民营企业");
        System.out.println(company1.getCompanyType());

        company1.setCompanyTelno(123456765L);
        System.out.println(company1.getCompanyTelno());


/*        Job job1 = new Job();
        job1.jobId = 001;
        job1.jobName = "项目经理";
        job1.jobLowSalary = 5000;
        job1.jobHighSalary = 30000;
        job1.education = "本科及以上";
        job1.jobCity = "江苏";
        job1.company = company1;


        company1.publishJob();
        company1.getResume();*/



        //实例化对象2
        /*Company company2 = new Company();
        company2.companyId = 9002;
        company2.companyName = "小米";
        company2.companyAddress = "苏州姑苏";
        company2.companyType = "民营企业";
        company2.companyTelno = 98745675L;*/


        /*Job job2 = new Job();
        job2.jobId = 002;
        job2.jobName = "软件工程师";
        job2.jobLowSalary = 7000;
        job2.jobHighSalary = 30000;
        job2.education = "本科及以上";
        job2.jobCity = "江苏";
        job2.company = company2;

        company2.publishJob();
        company2.getResume();*/











        int x = 10;
        add(x);  //实际参数
    }


    public static int add(int x){  //形式参数
        x = 11;
        return 0;
    }
}
